package com.haiyou.dc.canal.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

import java.util.Date;

/**
 * 用户表
 *
 * @author Administrator
 * @date 2020-04-06 20:08:00
 */
@ApiModel(value = "用户表")
@Data
@Accessors(chain = true)
@Table(name = "_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    /**
     * 用户名 电话号码
     */
    @Column(name = "user_name")
    @ApiModelProperty(value = "用户名 电话号码", name = "userName")
    private String userName;

    /**
     * 邮箱
     */
    @Column(name = "email")
    @ApiModelProperty(value = "邮箱", name = "email")
    private String email;

    /**
     * 区域id
     */
    @Column(name = "region_id")
    @ApiModelProperty(value = "区域id", name = "regionId")
    private Integer regionId;

    /**
     * 姓名 姓名
     */
    @Column(name = "name")
    @ApiModelProperty(value = "姓名 姓名", name = "name")
    private String name;

    /**
     * 密码
     */
    @Column(name = "password")
    @ApiModelProperty(value = "密码", name = "password")
    private String password;

    /**
     * 0 平台用户类型,1应用端用户
     */
    @Column(name = "openid")
    @ApiModelProperty(value = "0 平台用户类型,1应用端用户", name = "openid")
    private String openid;

    /**
     * 上司id
     */
    @Column(name = "boss_user_id")
    @ApiModelProperty(value = "上司id", name = "bossUserId")
    private Integer bossUserId;

    /**
     * 状态 用户状态
     */
    @Column(name = "status")
    @ApiModelProperty(value = "状态 用户状态", name = "status")
    private Integer status;

    /**
     * 创建人编号 创建人编号
     */
    @Column(name = "creator_id")
    @ApiModelProperty(value = "创建人编号 创建人编号", name = "creatorId")
    private Integer creatorId;

    /**
     * 创建人姓名 创建人姓名
     */
    @Column(name = "creator_name")
    @ApiModelProperty(value = "创建人姓名 创建人姓名", name = "creatorName")
    private String creatorName;

    /**
     * 创建日期 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建日期 创建时间", name = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

    /**
     * 角色id
     */
    @Column(name = "role_id")
    @ApiModelProperty(value = "角色id", name = "roleId")
    private Integer roleId;

    /**
     * 部门名称
     */
    @Column(name = "dept")
    @ApiModelProperty(value = "部门名称", name = "dept")
    private String dept;

    /**
     * 头像url
     */
    @Column(name = "avatar")
    @ApiModelProperty(value = "头像url", name = "avatar")
    private String avatar;

    /**
     * 办公室id
     */
    @Column(name = "office_id")
    @ApiModelProperty(value = "办公室id", name = "officeId")
    private Integer officeId;

    /**
     * 办公室名称
     */
    @Column(name = "office_name")
    @ApiModelProperty(value = "办公室名称", name = "officeName")
    private String officeName;

}
